---
title: Data Table
description: Powerful table and datagrids built using TanStack Table.
shadcnDocsLink: https://ui.shadcn.com/docs/components/data-table
---

<ComponentPreview component="data-table">
  ```tsx file=<rootDir>/src/examples/ui/data-table.tsx
  ```
</ComponentPreview>

## Installation

You'll have to go to <a target="_blank" href="https://ui.shadcn.com/docs/components/data-table">shadcn-ui docs</a> for this component and follow the instructions there. When you're done, you can copy the data-table component and paste it in inside your project:

<br />

```tsx file=<rootDir>/src/components/ui/data-table.tsx
```

## Usage

```ts
import DataTableDemo from '@/components/ui/data-table'
```

```tsx
<DataTableDemo />
```